Skip to content

Implementation of graphql-ws protocol #242

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

leszekhanusz
Copy link
Collaborator

subscriptions-transport-ws used by the WebsocketsTransport class is apparently no longer actively maintained and the graphql-ws library is recommended instead.

This library uses a different websocket protocol.

It is possible to support both protocols from the client side by detecting which subprotocol has been chosen by the backend.

@leszekhanusz leszekhanusz linked an issue Sep 16, 2021 that may be closed by this pull request
@codecov-commenter
Copy link

codecov-commenter commented Sep 16, 2021

Codecov Report

Merging #242 (f5f757c) into master (7992721) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #242   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           16        16           
  Lines         1240      1337   +97     
=========================================
+ Hits          1240      1337   +97     
Impacted Files Coverage Δ
gql/transport/websockets.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7992721...f5f757c. Read the comment docs.

@leszekhanusz leszekhanusz merged commit feea531 into graphql-python:master Oct 24, 2021
@leszekhanusz leszekhanusz deleted the feature_graphqlws_transport branch November 8, 2021 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implementation of graphql-ws protocol
2 participants